import sys
sys.path.append("/home/bachelor/zhangyi/my_code/vasp")

import os


def getAllFileAbsPathInFolder(directory):
    """
    获取指定路径下所有'文件'的绝对路径,递归执行
    """
    all_files = []  
    for root, dirs, files in os.walk(directory):  
        for file in files:  
            all_files.append(os.path.join(root, file))  
    return all_files

def getAllFolderAbsPathInFolder(root_folder_path):  
    folder_paths = []  
    for foldername, subfolders, filenames in os.walk(root_folder_path):  
        for subfolder in subfolders:  
            folder_paths.append(os.path.join(foldername, subfolder))  
    return folder_paths